Normalize newlines in DjVu text-layer metadata.
authorBrian Wolff <bawolff+wn@gmail.com>
Fri, 6 Dec 2013 20:29:30 +0000 (16:29 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Fri, 6 Dec 2013 22:12:58 +0000 (18:12 -0400)
commit9b48c297fb7d078d2b79597d72612e885aadd707
treee10a2b8eabbb20a959ef06a0144ae622fbaae245
parent96ddd951fb7047607fc7347d18e28588ec974c5c
Normalize newlines in DjVu text-layer metadata.

Currently, newlines in DjVu text layer are stored as the literal
string '\n'. Its up to the consumer to unescape that into
a real newline. Other formats like pdfs return newlines
as an actual \n character when getPageText() is called.
I think getPageText() should not require callers to do this.

Change-Id: Ie1a438bbce5444c53ff6b7b3aaf2b5267ba3c8b4
includes/media/DjVuImage.php